export default [
  {
    path: 'factor',
    name: 'Factor',
    meta: { title: '生产要素', icon: 'micon3.png' },
    hidden: false,
    code: '9001|9002|9003|9004|9005|9006|9007|9008|9009|9010|9011',
    children: [
      {
        path: 'land',
        name: 'Factor-Land-Index',
        hidden: false,
        code: '9002|9003|9004|9005',
        meta: { title: '地块管理', keepAlive: true },
        redirect: '/factor/land/index',
        children: [
          {
            path: 'index',
            name: 'Factor-Land-Index',
            hidden: true,
            code: '9002|9003|9004|9005',
            meta: { title: '地块管理', icon: 'Calendar', keepAlive: true },
            component: () => import('@/view/factor/land/index/index.vue'),
          }
        ]
      },
      {
        path: 'team',
        name: 'Factor-Team-List',
        hidden: false,
        code: '9007|9008|9009',
        meta: { title: '团队管理', keepAlive: true },
        redirect: '/factor/team/list',
        children: [
          {
            path: 'list',
            name: 'Factor-Team-List',
            hidden: true,
            meta: { title: '团队列表', icon: 'user' },
            component: () => import('@/view/factor/team/index.vue'),
          }
        ]
      },
      {
        path: 'weather',
        name: 'Weather',
        hidden: false,
        code:'9011',
        meta: { title: '气象服务', keepAlive: true  },
        component: () => import('@/view/factor/weather/index.vue'),
      },
      {
        path: 'purchase',
        name: 'purchase',
        hidden: false,
        code:'9011',
        meta: { title: '农资采购', keepAlive: true  },
        redirect: '/factor/purchase/list',
        children: [
          {
            path: 'list',
            name: 'purchase-list',
            hidden: true,
            meta: { title: '农资采购', icon: 'user' },
            component: () => import('@/view/factor/purchase/index.vue'),
          },
          {
            path: 'purchase-order',
            name: 'purchase-order',
            hidden: true,
            code:'9011',
            meta: { title: '采购单/添加', keepAlive: false  },
            component: () => import('@/view/factor/purchase/purchase-order.vue'),
          },
          {
            path: 'create-order',
            name: 'create-order',
            hidden: true,
            code:'9011',
            meta: { title: '确认订单', keepAlive: false  },
            component: () => import('@/view/factor/purchase/create-order.vue'),
          },
          {
            path: 'apply-service',
            name: 'apply-service',
            hidden: true,
            code:'9011',
            meta: { title: '申请售后', keepAlive: false  },
            component: () => import('@/view/factor/purchase/apply-service.vue'),
          },
          {
            path: 'order-detail',
            name: 'order-detail',
            hidden: true,
            code:'9011',
            meta: { title: '订单详情', keepAlive: false  },
            component: () => import('@/view/factor/purchase/order-detail.vue'),
          },
          {
            path: 'spu-detail',
            name: 'spu-detail',
            hidden: true,
            code:'9011',
            meta: { title: '商品详情', keepAlive: false  },
            component: () => import('@/view/factor/purchase/spu-detail.vue'),
          },
          {
            path: 'pay-order',
            name: 'pay-order',
            hidden: true,
            code:'9011',
            meta: { title: '支付订单', keepAlive: false  },
            component: () => import('@/view/factor/purchase/pay-order.vue'),
          },
          
        ]
      }
    ]
  }
]
